const inspectionTypes = [{
  enName: 'oracle',
  name: '数据库服务器&ORACLE设备监控',
  ftype: 'day',
}, {
  enName: 'bnw',
  name: 'BHICS2+NAGIOS&UPS&WINDOWS设备监控',
  ftype: 'day',
}, {
  enName: 'bhics',
  name: 'BHICS2存储及交换机&虚拟化设备监控',
  ftype: 'day',
}, {
  enName: 'bhics2',
  name: 'BHICS2应用进程监控',
  ftype: 'day',
}, {
  enName: 'it',
  name: '每周-IT设备预防性维护月度检查表',
  ftype: 'week',
}, {
  enName: 'workstation',
  name: '每周-工作站&工控机预防性维护月度检查表',
  ftype: 'week',
}];

let counter = 0;
const hoursConfig = Array
  .from({ length: 24 * 2 - 1 })
  .map(() => {
    let value = counter;
    let label = `${Math.floor(counter)}时${counter - Math.floor(counter) === 0.5 ? '30分' : ''}`;
    counter += 0.5;
    return {
      value,
      label,
    }
  });

const weekDaysConfig = [{
  value: 1,
  label: '周一'
}, {
  value: 2,
  label: '周二'
}, {
  value: 3,
  label: '周三'
}, {
  value: 4,
  label: '周四'
}, {
  value: 5,
  label: '周五'
}, {
  value: 6,
  label: '周六'
}, {
  value: 7,
  label: '周日'
}];

const labelsConfig = [{
  value: '白',
  label: '白'
}, {
  value: '晚',
  label: '晚',
}];

export {
  inspectionTypes,
  hoursConfig,
  weekDaysConfig,
  labelsConfig,
}
